// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "TowerDefenceGameCamera.generated.h"

UCLASS()
class TF_20240717_API ATowerDefenceGameCamera : public APawn
{
	GENERATED_BODY()

public:
	ATowerDefenceGameCamera();
	virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;

	void Zoom(float Direction, const float &ZoomSpeed = 2.0f);
protected:
	virtual void BeginPlay() override;

private:
	// 弹簧臂
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Camera", meta=(AllowPrivateAccess="true"))
	class USpringArmComponent* CameraBoom;

	// 相机
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Camera", meta=(AllowPrivateAccess="true"))
	class UCameraComponent* MainCamera;

	// 相机碰撞标识
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Camera", meta=(AllowPrivateAccess="true"))
	class UBoxComponent* MarkBox;
	

};
